package com.flash.DayProcessing.mapper;

import com.flash.DayProcessing.entity.IncomePayments;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;
@Mapper
public interface IncomePaymentsMapper {
    @Select("select * from cashAccrualStock c join (select * from cash) s on c.cashId = s.cashId where c.businessType=3 ${ccc}")
    public List<IncomePayments> selectCashInterestIncome(Map map);

    @Select("select *  from securityAccrualStock s join (select * from security) e on s.securityId = e.securityId where s.securityType =3 ${bbb}")
    public List<IncomePayments> selectBondInterestIncome(Map map);

    @Select("select * from cashAccrualStock c join (select * from cash) s on c.cashId = s.cashId where (c.businessType=2  ${aaa}) or (c.businessType=1 ${aaa})")
    public List<IncomePayments> selectPayTwoFees(Map map);
}
